.class public Les/o70;
.super Les/s80;
.source "RecvTask.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/o70$c;,
        Les/o70$d;
    }
.end annotation


# instance fields
.field private D:Ljava/lang/String;

.field private E:Ljava/lang/String;

.field private F:Ljava/net/Socket;

.field private G:J

.field private H:Landroid/app/Activity;

.field private I:Les/o70$d;

.field private J:Les/v80$f;

.field private K:Z

.field private L:Z

.field M:Ljava/lang/Long;


# direct methods
.method private constructor <init>(Landroid/app/Activity;Les/o70$d;Z)V
    .locals 3

    .line 1
    invoke-direct {p0}, Les/s80;-><init>()V

    .line 2
    new-instance v0, Les/v80$f;

    invoke-direct {v0}, Les/v80$f;-><init>()V

    iput-object v0, p0, Les/o70;->J:Les/v80$f;

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Les/o70;->K:Z

    .line 4
    iput-boolean v0, p0, Les/o70;->L:Z

    const-wide/16 v1, 0x0

    .line 5
    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    iput-object v1, p0, Les/o70;->M:Ljava/lang/Long;

    .line 6
    iput-object p1, p0, Les/o70;->H:Landroid/app/Activity;

    .line 7
    iget-object p1, p2, Les/o70$d;->i:Ljava/lang/String;

    iput-object p1, p0, Les/o70;->E:Ljava/lang/String;

    .line 8
    iget-object p1, p2, Les/o70$d;->h:Ljava/lang/String;

    iput-object p1, p0, Les/o70;->D:Ljava/lang/String;

    .line 9
    iget-object p1, p2, Les/o70$d;->j:Ljava/net/Socket;

    iput-object p1, p0, Les/o70;->F:Ljava/net/Socket;

    .line 10
    iget-wide v1, p2, Les/o70$d;->e:J

    iput-wide v1, p0, Les/o70;->G:J

    .line 11
    iput-object p2, p0, Les/o70;->I:Les/o70$d;

    .line 12
    iput-boolean v0, p0, Les/s80;->w:Z

    .line 13
    iput-boolean v0, p0, Les/s80;->u:Z

    const/4 p1, 0x6

    .line 14
    iput p1, p0, Les/s80;->s:I

    .line 15
    iput-boolean p3, p0, Les/o70;->K:Z

    .line 16
    invoke-direct {p0}, Les/o70;->G()V

    .line 17
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object p2, p0, Les/o70;->D:Ljava/lang/String;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, " "

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p2, p0, Les/o70;->H:Landroid/app/Activity;

    const p3, 0x7f1108f1

    invoke-virtual {p2, p3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Les/s80;->a(Ljava/lang/String;)V

    return-void
.end method

.method private G()V
    .locals 2

    .line 1
    iget v0, p0, Les/s80;->s:I

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    const-string v1, "task_type"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    const/4 v0, 0x0

    .line 2
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    const-string v1, "restartable"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 3
    iget-object v0, p0, Les/o70;->D:Ljava/lang/String;

    const-string v1, "title"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 4
    iget-object v0, p0, Les/o70;->I:Les/o70$d;

    iget v0, v0, Les/o70$d;->c:I

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    const-string v1, "items_selected_count"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 5
    iget-object v0, p0, Les/o70;->I:Les/o70$d;

    iget-object v0, v0, Les/o70$d;->g:Ljava/lang/String;

    const-string v1, "source"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 6
    invoke-virtual {p0}, Les/o70;->D()Ljava/lang/String;

    move-result-object v0

    const-string v1, "target"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 7
    iget-wide v0, p0, Les/o70;->G:J

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    const-string v1, "size"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    return-void
.end method

.method static synthetic a(Les/o70;)Les/o70$d;
    .locals 0

    .line 1
    iget-object p0, p0, Les/o70;->I:Les/o70$d;

    return-object p0
.end method

.method public static a(Landroid/app/Activity;Ljava/lang/Object;Z)Les/o70;
    .locals 2

    .line 15
    check-cast p1, Les/o70$d;

    .line 16
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    if-nez v0, :cond_0

    .line 17
    :try_start_0
    iget-object p0, p1, Les/o70$d;->j:Ljava/net/Socket;

    invoke-virtual {p0}, Ljava/net/Socket;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    const/4 p0, 0x0

    return-object p0

    .line 18
    :cond_0
    new-instance v0, Les/o70;

    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v1

    invoke-direct {v0, v1, p1, p2}, Les/o70;-><init>(Landroid/app/Activity;Les/o70$d;Z)V

    .line 19
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result p1

    const/16 v1, 0x15

    if-lt p1, v1, :cond_1

    .line 20
    new-instance p1, Lcom/estrongs/android/pop/e;

    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v1

    invoke-direct {p1, v1}, Lcom/estrongs/android/pop/e;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, p1}, Les/s80;->a(Les/v80;)V

    :cond_1
    if-eqz p2, :cond_2

    .line 21
    invoke-virtual {v0, p0}, Les/o70;->a(Landroid/app/Activity;)Les/o70$c;

    move-result-object p0

    const/4 p1, 0x0

    .line 22
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/a1;->c(Z)Lcom/estrongs/android/ui/dialog/a1;

    .line 23
    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/a1;->show()V

    .line 24
    invoke-virtual {v0}, Les/s80;->d()V

    goto :goto_0

    .line 25
    :cond_2
    invoke-virtual {v0}, Les/s80;->d()V

    :goto_0
    return-object v0
.end method

.method static synthetic a(Les/o70;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Les/o70;->L:Z

    return p1
.end method

.method static synthetic b(Les/o70;)Landroid/app/Activity;
    .locals 0

    .line 1
    iget-object p0, p0, Les/o70;->H:Landroid/app/Activity;

    return-object p0
.end method

.method static synthetic c(Les/o70;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Les/o70;->D:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic d(Les/o70;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Les/o70;->E:Ljava/lang/String;

    return-object p0
.end method

.method static synthetic e(Les/o70;)Les/v80$f;
    .locals 0

    .line 1
    iget-object p0, p0, Les/o70;->J:Les/v80$f;

    return-object p0
.end method


# virtual methods
.method public C()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/o70;->H:Landroid/app/Activity;

    new-instance v1, Les/o70$b;

    invoke-direct {v1, p0}, Les/o70$b;-><init>(Les/o70;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void
.end method

.method public D()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Les/o70;->E:Ljava/lang/String;

    return-object v0
.end method

.method public E()Ljava/lang/String;
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Les/o70;->E:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Les/o70;->D:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public F()Z
    .locals 3

    .line 1
    iget-object v0, p0, Les/o70;->I:Les/o70$d;

    iget v1, v0, Les/o70$d;->c:I

    const/4 v2, 0x1

    if-ne v1, v2, :cond_0

    iget v0, v0, Les/o70$d;->b:I

    const/4 v1, 0x2

    if-eq v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v2, 0x0

    :goto_0
    return v2
.end method

.method a(Landroid/app/Activity;)Les/o70$c;
    .locals 2

    .line 13
    new-instance v0, Les/o70$c;

    const v1, 0x7f1108f1

    .line 14
    invoke-virtual {p1, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, p0, p1, v1, p0}, Les/o70$c;-><init>(Les/o70;Landroid/app/Activity;Ljava/lang/String;Les/s80;)V

    return-object v0
.end method

.method public varargs a(I[Ljava/lang/Object;)V
    .locals 6

    const/4 v0, 0x1

    const/4 v1, 0x0

    const/4 v2, 0x2

    if-eq p1, v2, :cond_1

    const/16 v2, 0x9

    if-eq p1, v2, :cond_0

    .line 3
    invoke-super {p0, p1, p2}, Les/s80;->a(I[Ljava/lang/Object;)V

    goto :goto_0

    .line 4
    :cond_0
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object v1, p2, v1

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    iput-wide v1, p1, Les/w80$a;->g:J

    .line 5
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object p2, p2, v0

    check-cast p2, Ljava/lang/Long;

    invoke-virtual {p2}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iput-wide v0, p1, Les/w80$a;->h:J

    goto :goto_0

    .line 6
    :cond_1
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object v1, p2, v1

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    iput-wide v3, p1, Les/w80$a;->f:J

    .line 7
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object v0, p2, v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, p1, Les/w80$a;->a:Ljava/lang/String;

    .line 8
    aget-object p2, p2, v2

    check-cast p2, Ljava/lang/Long;

    invoke-virtual {p2}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iput-wide v0, p1, Les/w80$a;->e:J

    .line 9
    invoke-virtual {p0}, Les/s80;->o()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 10
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide p1

    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    .line 11
    iget-object p2, p0, Les/s80;->c:Les/w80$a;

    iget-wide v0, p2, Les/w80$a;->f:J

    long-to-float v0, v0

    float-to-double v0, v0

    invoke-virtual {p1}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    iget-object p1, p0, Les/o70;->M:Ljava/lang/Long;

    invoke-virtual {p1}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    sub-long/2addr v2, v4

    long-to-double v2, v2

    const-wide v4, 0x408f400000000000L    # 1000.0

    invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v2, v4

    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v0, v2

    double-to-int p1, v0

    iput p1, p2, Les/w80$a;->b:I

    .line 12
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    invoke-virtual {p0, p1}, Les/s80;->a(Les/w80$a;)V

    :cond_2
    :goto_0
    return-void
.end method

.method public y()Z
    .locals 25

    move-object/from16 v1, p0

    .line 1
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Waiting for recving "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, v1, Les/o70;->D:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Les/w80$a;->a:Ljava/lang/String;

    .line 2
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    invoke-virtual {v1, v0}, Les/s80;->a(Les/w80$a;)V

    .line 3
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    iget-object v2, v1, Les/o70;->I:Les/o70$d;

    iget-wide v3, v2, Les/o70$d;->e:J

    iput-wide v3, v0, Les/w80$a;->e:J

    .line 4
    iget-object v3, v2, Les/o70$d;->h:Ljava/lang/String;

    iput-object v3, v0, Les/w80$a;->j:Ljava/lang/String;

    .line 5
    iget v0, v2, Les/o70$d;->c:I

    const/4 v2, 0x1

    if-le v0, v2, :cond_0

    .line 6
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, v1, Les/s80;->c:Les/w80$a;

    iget-object v4, v3, Les/w80$a;->j:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "..."

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v3, Les/w80$a;->j:Ljava/lang/String;

    .line 7
    :cond_0
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    iget-object v3, v1, Les/o70;->I:Les/o70$d;

    iget v3, v3, Les/o70$d;->d:I

    int-to-long v3, v3

    iput-wide v3, v0, Les/w80$a;->c:J

    const-wide/16 v3, 0x0

    .line 8
    iput-wide v3, v0, Les/w80$a;->d:J

    .line 9
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v5

    const/16 v6, 0x2710

    const/4 v7, 0x0

    .line 10
    :try_start_0
    iget-object v0, v1, Les/o70;->F:Ljava/net/Socket;

    invoke-virtual {v0, v6}, Ljava/net/Socket;->setSoTimeout(I)V

    .line 11
    new-instance v8, Ljava/io/DataInputStream;

    iget-object v0, v1, Les/o70;->F:Ljava/net/Socket;

    invoke-virtual {v0}, Ljava/net/Socket;->getInputStream()Ljava/io/InputStream;

    move-result-object v0

    invoke-direct {v8, v0}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_a

    .line 12
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v9

    invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    iput-object v0, v1, Les/o70;->M:Ljava/lang/Long;

    move-wide v10, v3

    const/4 v0, 0x0

    const/4 v9, 0x0

    const/4 v12, 0x0

    :goto_0
    const/4 v14, 0x2

    if-eqz v5, :cond_1

    .line 13
    invoke-virtual {v5}, Les/s80;->z()Z

    move-result v15

    if-eqz v15, :cond_1

    const/4 v9, 0x2

    goto/16 :goto_b

    .line 14
    :cond_1
    iget-boolean v15, v1, Les/o70;->K:Z

    if-eqz v15, :cond_2

    iget-boolean v15, v1, Les/o70;->L:Z

    if-nez v15, :cond_2

    const-wide/16 v13, 0xc8

    .line 15
    :try_start_1
    invoke-static {v13, v14}, Ljava/lang/Thread;->sleep(J)V
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_2

    .line 16
    :cond_2
    :try_start_2
    invoke-static {v8}, Les/c90;->a(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v15
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_8

    .line 17
    :try_start_3
    invoke-static {v8}, Les/c90;->a(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v16
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    move-object/from16 v3, v16

    goto :goto_1

    :catch_0
    const/4 v3, 0x0

    :goto_1
    :try_start_4
    const-string v4, "OVER"

    .line 18
    invoke-virtual {v15, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_3

    if-nez v3, :cond_3

    goto/16 :goto_b

    .line 19
    :cond_3
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v6, v1, Les/o70;->E:Ljava/lang/String;

    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v15}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const-string v6, "folder"

    .line 20
    invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    const/4 v6, -0x1

    const/16 v13, 0x2f

    if-eqz v3, :cond_5

    .line 21
    invoke-virtual {v15, v13}, Ljava/lang/String;->indexOf(I)I

    move-result v3

    if-ne v3, v6, :cond_4

    .line 22
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v3

    invoke-virtual {v3, v4}, Les/p10;->a(Ljava/lang/String;)V

    .line 23
    :cond_4
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v3

    invoke-virtual {v3, v4}, Lcom/estrongs/fs/f;->o(Ljava/lang/String;)Z

    :catch_1
    :goto_2
    const-wide/16 v3, 0x0

    const/16 v6, 0x2710

    goto :goto_0

    .line 24
    :cond_5
    invoke-static {v8}, Les/c90;->a(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v3

    .line 25
    iget-object v6, v1, Les/o70;->J:Les/v80$f;

    monitor-enter v6
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_8

    if-nez v0, :cond_7

    .line 26
    :try_start_5
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v13

    invoke-virtual {v13, v4}, Lcom/estrongs/fs/f;->c(Ljava/lang/String;)Z

    move-result v13

    if-eqz v13, :cond_7

    .line 27
    iget-object v0, v1, Les/o70;->J:Les/v80$f;

    iput-object v4, v0, Les/v80$f;->e:Ljava/lang/String;

    .line 28
    invoke-virtual/range {p0 .. p0}, Les/o70;->C()V

    .line 29
    iget-object v0, v1, Les/o70;->J:Les/v80$f;

    invoke-virtual {v0}, Ljava/lang/Object;->wait()V

    .line 30
    iget-object v0, v1, Les/o70;->J:Les/v80$f;

    iget-boolean v0, v0, Les/v80$c;->b:Z

    .line 31
    iget-object v12, v1, Les/o70;->J:Les/v80$f;

    iget v12, v12, Les/v80$c;->c:I

    if-ne v12, v14, :cond_6

    const/4 v12, 0x1

    goto :goto_3

    :cond_6
    const/4 v12, 0x0

    :cond_7
    :goto_3
    move v13, v12

    move v12, v0

    .line 32
    monitor-exit v6
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    const/16 v0, 0x4000

    new-array v6, v0, [B

    .line 33
    invoke-static {v3}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v17

    const/4 v3, 0x0

    const-wide/16 v19, 0x0

    :goto_4
    if-eqz v5, :cond_8

    .line 34
    invoke-virtual {v5}, Les/s80;->z()Z

    move-result v21

    if-eqz v21, :cond_8

    move-object/from16 v22, v15

    const/4 v9, 0x2

    goto/16 :goto_8

    :cond_8
    if-eqz v13, :cond_9

    .line 35
    :try_start_6
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v2

    invoke-virtual {v2, v4}, Lcom/estrongs/fs/f;->c(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_a

    goto :goto_5

    :catch_2
    move-exception v0

    move-object/from16 v22, v15

    goto/16 :goto_7

    :cond_9
    :goto_5
    if-nez v3, :cond_a

    .line 36
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v2

    invoke-virtual {v2, v4}, Lcom/estrongs/fs/f;->h(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v2

    move-object v3, v2

    :cond_a
    cmp-long v2, v19, v17

    if-ltz v2, :cond_b

    .line 37
    invoke-static {v8}, Les/c90;->a(Ljava/io/InputStream;)Ljava/lang/String;
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_2

    move-object/from16 v22, v15

    goto :goto_8

    :cond_b
    move-object/from16 v22, v15

    int-to-long v14, v0

    add-long v14, v19, v14

    cmp-long v23, v14, v17

    if-lez v23, :cond_c

    sub-long v14, v17, v19

    long-to-int v15, v14

    .line 38
    :try_start_7
    invoke-virtual {v8, v6, v7, v15}, Ljava/io/DataInputStream;->read([BII)I

    move-result v14
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_3

    goto :goto_6

    :catch_3
    move-exception v0

    goto :goto_7

    .line 39
    :cond_c
    :try_start_8
    invoke-virtual {v8, v6}, Ljava/io/DataInputStream;->read([B)I

    move-result v14
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_5

    :goto_6
    if-gtz v14, :cond_d

    goto :goto_8

    :cond_d
    if-eqz v3, :cond_e

    .line 40
    :try_start_9
    invoke-virtual {v3, v6, v7, v14}, Ljava/io/OutputStream;->write([BII)V
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_3

    :cond_e
    int-to-long v14, v14

    add-long v19, v19, v14

    add-long/2addr v10, v14

    const/16 v14, 0x9

    const/4 v2, 0x2

    :try_start_a
    new-array v15, v2, [Ljava/lang/Object;

    .line 41
    invoke-static/range {v17 .. v18}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v23

    aput-object v23, v15, v7

    invoke-static/range {v19 .. v20}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v23

    const/16 v21, 0x1

    aput-object v23, v15, v21

    invoke-virtual {v5, v14, v15}, Les/s80;->b(I[Ljava/lang/Object;)V

    const/4 v14, 0x3

    new-array v14, v14, [Ljava/lang/Object;

    .line 42
    invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v15

    aput-object v15, v14, v7

    aput-object v4, v14, v21
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_5

    move-object v15, v3

    :try_start_b
    iget-wide v2, v1, Les/o70;->G:J

    .line 43
    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    const/4 v3, 0x2

    aput-object v2, v14, v3

    .line 44
    invoke-virtual {v5, v3, v14}, Les/s80;->b(I[Ljava/lang/Object;)V
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_4

    move-object v3, v15

    move-object/from16 v15, v22

    const/4 v2, 0x1

    const/4 v14, 0x2

    goto/16 :goto_4

    :catch_4
    move-exception v0

    move-object v3, v15

    goto :goto_7

    :catch_5
    move-exception v0

    move-object v15, v3

    .line 45
    :goto_7
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 46
    :goto_8
    :try_start_c
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V
    :try_end_c
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_c} :catch_6

    goto :goto_9

    :catch_6
    nop

    .line 47
    :goto_9
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    iget-wide v14, v0, Les/w80$a;->d:J

    const-wide/16 v23, 0x1

    add-long v14, v14, v23

    iput-wide v14, v0, Les/w80$a;->d:J

    if-eqz v9, :cond_f

    .line 48
    :try_start_d
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z
    :try_end_d
    .catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_7

    goto :goto_b

    :catch_7
    nop

    goto :goto_b

    :cond_f
    cmp-long v0, v17, v19

    if-eqz v0, :cond_10

    .line 49
    :try_start_e
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z
    :try_end_e
    .catch Ljava/lang/Exception; {:try_start_e .. :try_end_e} :catch_8

    goto :goto_a

    .line 50
    :cond_10
    invoke-static {v4}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/lang/String;)V

    move-object/from16 v2, v22

    const/16 v3, 0x2f

    .line 51
    invoke-virtual {v2, v3}, Ljava/lang/String;->indexOf(I)I

    move-result v0

    const/4 v2, -0x1

    if-ne v0, v2, :cond_11

    .line 52
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v0

    invoke-virtual {v0, v4}, Les/p10;->a(Ljava/lang/String;)V

    :cond_11
    move v0, v12

    move v12, v13

    const/4 v2, 0x1

    goto/16 :goto_2

    :catchall_0
    move-exception v0

    .line 53
    :try_start_f
    monitor-exit v6
    :try_end_f
    .catchall {:try_start_f .. :try_end_f} :catchall_0

    :try_start_10
    throw v0
    :try_end_10
    .catch Ljava/lang/Exception; {:try_start_10 .. :try_end_10} :catch_8

    :catch_8
    :goto_a
    const/4 v9, 0x1

    :goto_b
    if-nez v9, :cond_15

    .line 54
    iget-object v0, v1, Les/o70;->I:Les/o70$d;

    iget-boolean v0, v0, Les/o70$d;->k:Z

    if-eqz v0, :cond_12

    .line 55
    iget-object v0, v1, Les/o70;->H:Landroid/app/Activity;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, v1, Les/o70;->E:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, v1, Les/o70;->D:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-static {v0, v3, v2}, Lcom/estrongs/android/pop/view/utils/b;->d(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V

    .line 56
    :cond_12
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Q()Z

    move-result v0

    if-nez v0, :cond_13

    .line 57
    iget-object v0, v1, Les/o70;->H:Landroid/app/Activity;

    new-instance v2, Les/o70$a;

    invoke-direct {v2, v1}, Les/o70$a;-><init>(Les/o70;)V

    invoke-virtual {v0, v2}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    goto/16 :goto_d

    .line 58
    :cond_13
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    const v2, 0x7f11005f

    invoke-virtual {v0, v2}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 59
    check-cast v5, Les/o70;

    invoke-virtual {v5}, Les/o70;->F()Z

    move-result v2

    if-eqz v2, :cond_14

    .line 60
    invoke-virtual {v5}, Les/o70;->E()Ljava/lang/String;

    move-result-object v2

    goto :goto_c

    .line 61
    :cond_14
    invoke-virtual {v5}, Les/o70;->D()Ljava/lang/String;

    move-result-object v2

    .line 62
    :goto_c
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    const v4, 0x7f110926

    const/4 v5, 0x1

    new-array v6, v5, [Ljava/lang/Object;

    aput-object v2, v6, v7

    invoke-virtual {v3, v4, v6}, Landroid/app/Application;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    .line 63
    new-instance v4, Landroid/content/Intent;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v5

    const-class v6, Lcom/estrongs/android/pop/app/ShowDialogActivity;

    invoke-direct {v4, v5, v6}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 v5, 0x10000000

    .line 64
    invoke-virtual {v4, v5}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 65
    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v4, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    const-string v2, "title"

    .line 66
    invoke-virtual {v4, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v0, "message"

    .line 67
    invoke-virtual {v4, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v0, "openfileOrFolder"

    const/4 v3, 0x1

    .line 68
    invoke-virtual {v4, v0, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 69
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/app/Application;->startActivity(Landroid/content/Intent;)V

    goto :goto_d

    :cond_15
    const/4 v3, 0x1

    if-ne v9, v3, :cond_16

    .line 70
    new-instance v0, Les/u80$a;

    iget-object v2, v1, Les/o70;->H:Landroid/app/Activity;

    const v3, 0x7f1109d5

    .line 71
    invoke-virtual {v2, v3}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-direct {v0, v2, v3}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    const/16 v2, 0x2710

    .line 72
    invoke-virtual {v1, v2, v0}, Les/s80;->b(ILjava/lang/Object;)V

    goto :goto_d

    :cond_16
    const/16 v2, 0x2710

    const/4 v3, 0x0

    const/4 v4, 0x2

    if-ne v9, v4, :cond_17

    .line 73
    new-instance v0, Les/u80$a;

    iget-object v4, v1, Les/o70;->H:Landroid/app/Activity;

    const v5, 0x7f110935

    .line 74
    invoke-virtual {v4, v5}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v0, v4, v3}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    .line 75
    invoke-virtual {v1, v2, v0}, Les/s80;->b(ILjava/lang/Object;)V

    .line 76
    :cond_17
    :goto_d
    :try_start_11
    iget-object v0, v1, Les/o70;->F:Ljava/net/Socket;

    invoke-virtual {v0}, Ljava/net/Socket;->close()V
    :try_end_11
    .catch Ljava/io/IOException; {:try_start_11 .. :try_end_11} :catch_9

    goto :goto_e

    :catch_9
    nop

    :goto_e
    if-nez v9, :cond_18

    const/4 v2, 0x1

    return v2

    :cond_18
    return v7

    :catch_a
    move-exception v0

    .line 77
    new-instance v2, Les/u80$a;

    const-string v3, "Sender disconnected."

    invoke-direct {v2, v3, v0}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    const/16 v3, 0x2710

    invoke-virtual {v1, v3, v2}, Les/s80;->b(ILjava/lang/Object;)V

    return v7
.end method
